#include <iostream>

class Test
{
public:
    Test()
    {
        std::cout<<"拷贝构造\n";
        count++;
    }

    ~Test()
    {
        count--;
        std::cout<<"析构函数\n";
    }
    static int count;

private:
    
};

//静态成员变量初始化
int Test::count = 0;

int main()
{
    //std::cout<<Test::m_c<<std::endl;
   Test *t1 = new Test();
   Test *t2 = new Test();

   delete t1;
   delete t2;
    std::cout<<Test::count<<std::endl;
    return 0;
}